package br.ufrn.sigtcc.controller.services;

import br.ufrn.sigtcc.controller.services.interfaces.IAdminService;
import br.ufrn.sigtcc.data.DAOAdminImpl;
import br.ufrn.sigtcc.data.interfaces.IDAOAdmin;
import br.ufrn.sigtcc.model.entidades.Admin;
import br.ufrn.sigtcc.util.exceptions.BDException;
import br.ufrn.sigtcc.util.exceptions.BusinessException;

public class AdminServiceImpl implements IAdminService{
	
	IDAOAdmin daoAdmin =  new DAOAdminImpl();
	
	public AdminServiceImpl() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public void cadastrarAdmin(Admin admin) throws BDException,
			BusinessException {

		this.daoAdmin.cadastrarAdmin(admin);
		
	}

	@Override
	public void removerAdmin(Admin admin) throws BDException,
			BusinessException {

		this.daoAdmin.removerAdmin(admin);
		
	}

	@Override
	public void atualizarAdmin(Admin admin) throws BDException,
			BusinessException {
		
		this.daoAdmin.atualizarAdmin(admin);
	}
	
	
}
